<template>
  <div id="app">
    <router-view />
    <file-chunk></file-chunk>
  </div>
</template>

<script>
import fileChunk from '@/components/FileChunk'

export default {
  name: 'App',
  components: { fileChunk },
  mounted() {
    this.$config('mourning').then(response => {
      if (response.param === 'true') {
        document.getElementById('html_global').style.filter = 'grayscale(100%)'
      } else {
        document.getElementById('html_global').style.filter = 'grayscale(0)'
      }
    }).catch(e => {
      document.getElementById('html_global').style.filter = 'grayscale(0)'
    })
  }
}
</script>
